<div id="ContentGroup">
    <div class="count-header">
        <a>专题资料添加</a>
    </div>
    <div class="count-content-group">
        <div class="count-content">
            <form  id="ZTZL_Insert" data-role="form" data-event="finish" data-type="post" data-url="<{'ZTZL_Insert_Action'|U}>">
                <input type="hidden" id="ZTZL_BH_ORA"  name="ZTZL_BH_ORA" value="<{$Model->ZTZL_BH|security_encript}>" />
                <div class="count-content-title">专题资料</div>
                <div class="count-content-type"><{*此处添加全局注释*}></div>
                <div class="form-list-item">
                    <label class="form-list-item-label">专题信息</label>
                    <{ZTXX::create($Model->ZTXX_BH)->ZTXX_MC}>
                    <input type="hidden" name="ZTXX_BH" value="<{$Model->ZTXX_BH}>">
                    <{*<{$ztxx= ZTXX::query()}>*}>
                    <{*<{'ZTXX_BH'|html_dropdownlist:$ztxx.DataList:$Model->ZTXX_BH:'ZTXX_BH':'ZTXX_MC'}>*}>
                    <{*<p class="form-list-item-tip"></p>*}>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>标题</label>
                    <input type="text" id="ZTZL_BT" name="ZTZL_BT" value="<{$Model->ZTZL_BT }>"/>
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>日期</label>
                    <input type="text" readonly="readonly" id="ZTZL_RQ"  name="ZTZL_RQ"  value="<{$Model->ZTZL_RQ }>" />
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>显示顺序</label>
                    <{'ZTZL_XSSX'|html_dropdownlist:["1" , "2" , "3" , "4" , "5" , "6" , "7" , "8" , "9" , "10" , "11" , "12" , "13" , "14" , "15" , "16" , "17" , "18" , "19" , "20"]:$Model->ZTZL_XSSX}>
                    <p class="form-list-item-tip">默认信息将按从小到大顺序排列</p>
                </div>
                <div class="count-content-title">内容</div>
                <div class="count-content-type"><{*此处添加全局注释*}></div>
                <div style="color: red;">推荐使用firefox、360(极速模式)、chrome、IE9以上、IE8兼容模式编辑；超文本内容建议直接粘贴纯文本。</div>
                <textarea id="ZTZL_NR" name="ZTZL_NR"><{$Model->ZTZL_NR }></textarea>
            </form>     
            <div class="form-operation">
                <span class="button" id="ZTZL_Insert-Submit">提交</span>
                <span class="button" data-role="back">返回</span>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        $("#ContentGroup").formset(0);//开启页面标签页
        //$("#ZTZL_Insert").vtip();//开启鼠标提示.
        
        //客户端验证脚本
        $("#ZTZL_Insert").validate({
            rules:{
                "ZTZL_BH":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "ZTXX_BH":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "ZTZL_BT":{
                    "maxbytelength":100 ,
                    "required":true 
                }, 
                "ZTZL_RQ":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "ZTZL_XSSX":{
                    "required":true 
                }, 
                "example":{} //可继续追加jquery validate客户端验证条件
            },
            "errorClass": "form-list-item-warn",
            //errorPlacement: function (error, element) {element.attr("data-tips", error.text());},//关闭默认提示，使用鼠标提示框时使用
            submitHandler: function () {
                $("#ZTZL_Insert").trigger("finish");
            }
        });
    
        $("[name=ZTZL_RQ]").datepicker({changeMonth: true,changeYear: true});
        var ue_ztzl_nr = new UE.ui.Editor({
        initialFrameHeight: 600  //初始化编辑器高度,默认600
        , iframeCssUrl: '__PUBLIC__/Styles/lib/ueditor/base.css' //请在__PUBLIC__/Styles/lib/ueditor下新建样式表并引用base.css
        });
        ue_ztzl_nr.render("ZTZL_NR");
        $("#ZTZL_XSSX").attr("data-tip","默认信息将按从小到大顺序排列");
        $("#ZTZL_Insert-Submit").click(function () {
            $("#ZTZL_Insert").submit();
        });
    });
</script>
